package com.yuantu.judiciary.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 默认参数
 *
 * @author syw
 * @since 2023-08-15
 **/
@Component
@ConfigurationProperties(prefix = "default-config")
public class DefaultConfig {

    /**
     * 获取地址开关
     */
    private static boolean addressEnabled;

    public static boolean isAddressEnabled() {
        return addressEnabled;
    }

    public void setAddressEnabled(boolean addressEnabled) {
        DefaultConfig.addressEnabled = addressEnabled;
    }

}
